home *** CD-ROM | disk | FTP | other *** search
/ PC Player 2004 May / pc player 2004-05.iso / Demos / FarCry / Data1.cab / _4FA4C10CE3F0490BA43F7B688102061B < prev    next >
Encoding:
Text File  |  2004-01-06  |  4.4 KB  |  155 lines

  1. Script:LoadScript("scripts/materials/commoneffects.lua");
  2.  
  3. --#Script:ReloadScript("scripts/materials/mat_rock.lua") --for copying/pasting into the console!!!
  4.     
  5.  
  6. Materials["mat_rock_nd"] = {
  7.     type="rock",
  8. -------------------------------------
  9.     PhysicsSounds=PhysicsSoundsTable.Hard,
  10. -------------------------------------    
  11.     bullet_drop_single = CommonEffects.common_bullet_drop_single_ashphalt,
  12.     bullet_drop_rapid = CommonEffects.common_bullet_drop_rapid_ashphalt,
  13. -------------------------------------    
  14.  
  15.     projectile_hit = CommonEffects.common_projectile_hit,
  16.     mortar_hit = CommonEffects.common_mortar_hit,
  17.     smokegrenade_hit = CommonEffects.common_smokegrenade_hit,
  18.     flashgrenade_hit = CommonEffects.common_flashgrenade_hit,
  19.     grenade_hit = CommonEffects.common_grenade_hit,
  20.  
  21.     bullet_hit = {
  22.         sounds = {
  23.             {"Sounds/bullethits/brock1.wav",SOUND_UNSCALABLE,200,5,60},
  24.             {"Sounds/bullethits/brock2.wav",SOUND_UNSCALABLE,200,5,60},
  25.             {"Sounds/bullethits/brock3.wav",SOUND_UNSCALABLE,200,5,60},
  26.             {"Sounds/bullethits/brock4.wav",SOUND_UNSCALABLE,200,5,60},
  27.             },
  28.             
  29.         particleEffects = {
  30.             name = "bullet.hit_rock.a",
  31.             },
  32.         },
  33.     pancor_bullet_hit = {
  34.         sounds = {
  35.             {"Sounds/bullethits/brock1.wav",SOUND_UNSCALABLE,200,5,60},
  36.             {"Sounds/bullethits/brock2.wav",SOUND_UNSCALABLE,200,5,60},
  37.             {"Sounds/bullethits/brock3.wav",SOUND_UNSCALABLE,200,5,60},
  38.             {"Sounds/bullethits/brock4.wav",SOUND_UNSCALABLE,200,5,60},
  39.             },
  40.             
  41.         particleEffects = {
  42.             name = "bullet.hit_rock_pancor.a",
  43.             },
  44.         },
  45.  
  46.  
  47.  
  48. -------------------------------------
  49.     player_walk = CommonEffects.player_conc_walk,
  50.     player_run = CommonEffects.player_conc_run,
  51.     player_crouch = CommonEffects.player_conc_crouch,
  52.     player_prone = CommonEffects.player_conc_prone,
  53.     player_walk_inwater = CommonEffects.player_walk_inwater,
  54.     
  55.     player_drop = {
  56.         sounds = {
  57.             {"sounds/player/bodyfalls/bodyfallrock1.wav",SOUND_UNSCALABLE,210,10,150},
  58.             {"sounds/player/bodyfalls/bodyfallrock2.wav",SOUND_UNSCALABLE,210,10,150},
  59.         },
  60. --        decal = { 
  61. --            texture = System:LoadTexture("Textures/Decal/Default.tga"),
  62. --            scale = 0.1,
  63. --        },
  64.     },
  65.     melee_slash = {
  66.         sounds = {
  67.             {"sounds/weapons/machete/macheteconc1.wav",SOUND_UNSCALABLE,185,5,30},
  68.             {"sounds/weapons/machete/macheteconc2.wav",SOUND_UNSCALABLE,185,5,30},
  69.             {"sounds/weapons/machete/macheteconc3.wav",SOUND_UNSCALABLE,185,5,30},
  70.         },
  71.         particles = 
  72.             {
  73.                 { --HitSparksTrail
  74.                 focus = 0.0,
  75.                 color = {1,1,1},
  76.                 speed = 2.0,
  77.                 count = 5,
  78.                 size = 0.010, 
  79.                 size_speed=0,
  80.                 gravity={x=0,y=0,z=-5},
  81.                 lifetime=0.1,
  82.                 tid = System:LoadTexture("Textures/Decal/Spark.dds"),
  83.                 tail_length = 0.3,
  84.                 frames=0,
  85.                 blend_type = 2
  86.                 },
  87.                 { --HitStonesDark
  88.                 focus = 1,
  89.                 speed = 2,
  90.                 start_color = {1,1,1},
  91.                 end_color = {1,1,1}, 
  92.                 count = 8, --default 3
  93.                 size = 0.01, 
  94.                 size_speed=0,
  95.                 gravity = {x = 0.0, y = 0.0, z = -3},
  96.                 rotation = {x = 0.0, y = 0.0, z = 15},
  97.                 lifetime=0.75,
  98.                 frames=1,
  99.                 blend_type = 0,
  100.                 bouncyness = 0.5,
  101.                 tid = System:LoadTexture("textures\\Sprites\\stone1.dds"),
  102.                 },
  103.                 { --HitStonesLight
  104.                 focus = 1,
  105.                 speed = 2,
  106.                 start_color = {1,1,1},
  107.                 end_color = {1,1,1}, 
  108.                 count = 6, --default 2
  109.                 size = 0.01, 
  110.                 size_speed=0,
  111.                 gravity = {x = 0.0, y = 0.0, z = -3},
  112.                 rotation = {x = 0.0, y = 0.0, z = 50},
  113.                 lifetime=0.750,
  114.                 frames=1,
  115.                 blend_type = 0,
  116.                 bouncyness = 0.5,
  117.                 tid = System:LoadTexture("textures\\Sprites\\stone2.dds"),
  118.                 },                
  119.             {--hitsmoke
  120.                  focus = 0,
  121.                 start_color = {0.89,0.69,0.4},
  122.                 end_color = {1,1,1},
  123.                 speed = 0.1,
  124.                 count = 5, --default 3
  125.                 size = 0.01, 
  126.                 size_speed=0.01,
  127.                 gravity = {x = 0.0, y = 0.0, z = 0.1},
  128.                 rotation = {x = 0.0, y = 0.0, z = 2},
  129.                 lifetime=1.25,
  130.                 tid = System:LoadTexture("textures/clouda2.dds"),
  131.                 frames=0,
  132.                 blend_type = 0,
  133.             },    
  134.         },
  135.     },
  136. -------------------------------------
  137.     player_land = {
  138.         sounds = {
  139.             --sound , volume , {min, max}
  140.             --NOTE volume and min max are optional
  141.              {"sounds/doors/dooropen.wav",SOUND_UNSCALABLE,150,4,20},
  142.              {"sounds/doors/dooropen.wav",SOUND_UNSCALABLE,150,4,20},
  143.             
  144.         },
  145.     },
  146.     gameplay_physic = {
  147.         piercing_resistence = 15,
  148.         friction = 0.7,
  149.         bouncyness= 0.2, -- default 0
  150.     },
  151.     ---------------------------------------------
  152.     AI = {
  153.         fImpactRadius = 5,
  154.     },            
  155. }